﻿/****************************************************************************
**
** CMD_ID对应 ./module/public.xml NetComm id=2000 此id=2000起，为避免重复及管理
** 此CMD_ID的作用：为任务提供唯一的CMD_ID
****************************************************************************/
#ifndef HC_NETCOMM_DEFINE_H
#define HC_NETCOMM_DEFINE_H

#include "../../include/tobject.h"
#include "../../include/commdef.h"

#define Public_NetComm_InitRobotCoreComm_CMD_ID 2000
#define Public_NetComm_InitRobotEngin_CMD_ID 2001
struct TPNetComm_InitRobotCommAndEngin_Result : public TObject
{
    bool bSuc;
};
#define Public_NetComm_SetRobotCoreMic_CMD_ID 2002

#define Public_NetComm_SetRobotCoreSysVolume_CMD_ID 2003
#define Public_NetComm_GetRobotCoreSysVolume_CMD_ID 2004
struct TPNetComm_SetAndGetSysVolume : public TObject
{
    int nVolume;
};

#define Public_NetComm_SendRobotCoreAsrStart_CMD_ID 2005
#define Public_NetComm_SendRobotCoreAsrStop_CMD_ID 2006

/*
 * wx: 动作组名称
 * tts:tts
 * audio:音频文件(tts).mp3
 * script:脚本文件名 examply:OnlyYou.py
 * speed:语速
 * picth:语调
 * bgaudio:背景音频
 * screenCfg:后屏配置dir/pic/gif/video
 * screenbarrage:后屏弹幕
 * ndelay:播放间隔
 */
#define Public_NetComm_SendRobotCoreBehaviour_CMD_ID 2100
struct TPNetComm_SendRobotCoreBehaviour : public TObject
{
    TPNetComm_SendRobotCoreBehaviour() {memset(this, 0, sizeof(TPNetComm_SendRobotCoreBehaviour));}
    char wx[32];
    char tts[512];
    char audio[128];
    char script[64];
    char speaker[16];
    int  speed;
    int  picth;
    char bgaudio[128];
    char screenCfg[128];
    char screenbarrage[64];
    int  ndelay;
};


#endif // DEFINE_H
